export function svg2Png(imageBase64, callback) {
	  const img = new Image(); // 创建图片容器
	  img.src = 'data:image/svg+xml;base64,' + imageBase64; //imageBase64 为svg+xml的Base64 文件流
	  img.onload = () => {
		// 图片创建后再执行，转Base64过程
		const canvas = document.createElement('canvas');
		canvas.width = 860;  //设置好 宽高  不然图片 不完整
		canvas.height = 280;
		const context = canvas.getContext('2d');
		context.drawImage(img, 0, 0);
		imageBase64 = canvas.toDataURL('image/png').slice(22);
		console.log('SVG2PNG', imageBase64)
		callback(imageBase64)
	  }
}
